<?php
Yii::import('zii.widgets.CBreadcrumbs');
class Breadcrumb extends CBreadcrumbs
{
	public function run()
	{
		if(empty($this->links))
			return;
		$html='<ul class="pvn-s">';
		$html .= CHtml::openTag($this->tagName,$this->htmlOptions)."\n";
		$links=array();
		/*if($this->homeLink===null)
			$links[]=CHtml::link(Yii::t('zii','Home'),Yii::app()->homeUrl);
		else if($this->homeLink!==false)
			$links[]=$this->homeLink;
		*/
		foreach($this->links as $label=>$url)
		{
			if(is_string($label) || is_array($url))
				$links[]='<li>'.CHtml::link($this->encodeLabel ? CHtml::encode($label) : $label, $url, array('class'=>'bt-sty1 bt-sty-blue')).'</li>';
			else
				$links[]='<span>'.($this->encodeLabel ? CHtml::encode($url) : $url).'</span>';
		}
		$html .= implode($this->separator,$links);
		$html .= CHtml::closeTag($this->tagName);
		$html .= '</ul>';
		$this->render('breadcrumb', array('html'=>$html));
	}
} 